Delete the gdb-inferior pty when the gdb process exits.
authorChong Yidong <cyd@gnu.org>
Thu, 19 Apr 2012 08:09:30 +0000 (16:09 +0800)
committerChong Yidong <cyd@gnu.org>
Thu, 19 Apr 2012 08:09:30 +0000 (16:09 +0800)
commit90fd6633afc269f59ad3dafd03f4eeed12a80b75
tree739bef7dd699b39b80f88a80c92fc0d88181f92c
parent4fd2c0205c4cd68f944b958255877db20fe84609
Delete the gdb-inferior pty when the gdb process exits.

* lisp/progmodes/gdb-mi.el (gdb-inferior-io--maybe-delete-pty): New
function to call delete-process on the gdb-inferior buffer's pty.
(gdb-reset): Use it, instead of relying on kill-buffer to kill the
pty process.
(gdb-update): New arg to suppress talking to the gdb process.
(gdb-done-or-error): Use it.
(gdb-stopped-functions): Rename from gdb-stopped-hooks.
(gdb): Call gdb-inferior-io--maybe-delete-pty as a workaround for
sentinel not being called.

* lisp/comint.el (make-comint-in-buffer, comint-exec): Doc fix.
lisp/ChangeLog
lisp/comint.el
lisp/progmodes/gdb-mi.el